package com.example.evanproject.mapper;

import com.example.evanproject.domain.Chatlist;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author hanxiaoqi
* @description 针对表【chatlist】的数据库操作Mapper
* @createDate 2024-03-09 21:52:12
* @Entity generator.domain.Chatlist
*/
@Mapper
public interface ChatlistMapper extends BaseMapper<Chatlist> {

    List<Chatlist> selectbyidwherelastinfo(Integer userid);
    @Insert("insert into chatlist (send_id,to_id,message,createtime) values (#{sendid},#{toid},#{message},#{time})")
    Integer sendlist(Integer sendid, Integer toid, String message, String time);
}




